package Problem3;
public class Text {
    public static void main(String[] args) {
        MyArrayList<String> myArrayList = new MyArrayList<>();
        myArrayList.add("1");
        myArrayList.add("2");
        myArrayList.add("3");
        myArrayList.add("4");
        myArrayList.add("5");
        myArrayList.add("6");
        myArrayList.add("7");
        myArrayList.add("8");
        myArrayList.add("9");
        myArrayList.add("10");
        myArrayList.add("11");
        myArrayList.add("13");
        myArrayList.add("13");
        myArrayList.add("19");
        myArrayList.add("13");
        myArrayList.add("18");

        System.out.println(myArrayList);

        System.out.println("------------------");
        System.out.println(myArrayList.get(2));
        System.out.println("------------------");
        System.out.println(myArrayList.remove(3));
        System.out.println("删除的结果："+myArrayList);
        System.out.println(myArrayList.size());
        System.out.println("---------遍历---------");
        myArrayList.forEach(System.out::println);
    }
}
